package com.squad.springbootdemo.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: LiamLMK
 * @CreateTime: 2025-03-15
 * @Description:
 * @Version: 1.0
 */

@Mapper
public interface QuestionMapper {
    @Insert("INSERT INTO question (content, asker, question_no) " +
            "VALUES (#{content}, #{asker}, #{question_no})")
    public int saveQuestion(@Param("content") String content,
                            @Param("asker") String asker,
                            @Param("question_no") String questionNo
                            );
}
